<div *ngIf="hero">
  <h2>{{hero.name}}详情</h2>
  <div><span>编号: </span>{{hero.id}}</div>
  <div><span>姓名: </span>{{hero.name|uppercase}}</div>

  <div>
    <label>姓名:
      <input [(ngModel)]="hero.name" placeholder="name" />
    </label>
  </div>
</div>
<button (click)="save()">保存</button>
<button (click)="goBack()">返回</button>
